package com.joesem.sale.client.utils.activityResult

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import com.goodPermission.launch.launchForResult

inline fun <reified T> AppCompatActivity.launcherResult(
    vararg value: Pair<String, Any?>,
    noinline onResult: (resultCode: Int, data: Intent?) -> Unit,
) {
    launchForResult<T>(value = value, onResult = onResult)
}
